from PIL import Image
from PIL.ExifTags import TAGS

def modify_exit(image_path):
    #打开图片
    image = Image.open(image_path)
    # 获取图片的EXIF信息
    exif_data = image._getexif()
    # 将EXIF信息转换为字典形式
    exif_dict = {TAGS[key]: exif_data[key] for key in exif_data.keys() if key in TAGS and isinstance(exif_data[key], (str, int))}